package com.xyd.service;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LogUtil {

    public void log(String type, int num) {
        System.out.println("日志：" + currTime() + "进行" + type + ",数量" + num + "部");
    }


    public String currTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return sdf.format(new Date());
    }
}
